<html>
<head><meta charset="utf-8"><title>whitespace sensitivity with symbols · t-lang · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/index.html">t-lang</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html">whitespace sensitivity with symbols</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="212930494"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212930494" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212930494">(Oct 10 2020 at 19:12)</a>:</h4>
<p>Are there any situations currently where Rust is sensitive to having whitespace between two tokens, apart from with keywords (e.g. <code>dyn Trait</code>)?</p>



<a name="212930573"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212930573" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Matthew Jasper <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212930573">(Oct 10 2020 at 19:14)</a>:</h4>
<p>There's <code>1&lt;-2</code> vs <code>1&lt; -2</code></p>



<a name="212930616"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212930616" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212930616">(Oct 10 2020 at 19:15)</a>:</h4>
<p>That is a good example, but placement syntax is deprecated now. I'm wondering if there are any that aren't.</p>



<a name="212930690"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212930690" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212930690">(Oct 10 2020 at 19:17)</a>:</h4>
<p><code>r# "string"#</code> is invalid, though I'm not sure if that's precisely what I'm looking for.</p>



<a name="212930772"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212930772" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Matthew Jasper <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212930772">(Oct 10 2020 at 19:19)</a>:</h4>
<p><code>1. .g();</code> vs. <code>1..g();</code> ? (where <code>g</code> is both a free function and a method on <code>f64</code>)</p>



<a name="212930890"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212930890" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212930890">(Oct 10 2020 at 19:22)</a>:</h4>
<p>That's a neat example, thanks.</p>



<a name="212932513"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212932513" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212932513">(Oct 10 2020 at 20:06)</a>:</h4>
<p>Wouldn't the increment and decrement operators also be an example?</p>



<a name="212932690"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212932690" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212932690">(Oct 10 2020 at 20:11)</a>:</h4>
<p>Rust doesn't have increment and decrement operators.</p>



<a name="212932822"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212932822" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212932822">(Oct 10 2020 at 20:15)</a>:</h4>
<p>Derp :p I guess the arrow in a function return also counts.</p>



<a name="212932880"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212932880" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212932880">(Oct 10 2020 at 20:16)</a>:</h4>
<p>I don't think that works either, because there's no postfix <code>-</code> operator.</p>



<a name="212932885"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212932885" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212932885">(Oct 10 2020 at 20:16)</a>:</h4>
<p>i suppose you probably already thought of <code>&amp;&amp;</code> vs <code>&amp; &amp;</code>, and <code>||</code> vs <code>| |</code></p>



<a name="212933222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212933222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212933222">(Oct 10 2020 at 20:26)</a>:</h4>
<p>Can you think of an example where removing the space leads to a different (valid) interpretation? I did try, but didn't come up with one.</p>



<a name="212933229"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212933229" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212933229">(Oct 10 2020 at 20:26)</a>:</h4>
<p>Technically <code>true &amp;&amp; true</code> is different to <code>true &amp; &amp;true</code>, but they evaluate to the same value, so it's not as convincing.</p>



<a name="212939602"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939602" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939602">(Oct 10 2020 at 23:26)</a>:</h4>
<p><span class="user-mention" data-user-id="121053">@varkor</span> You can overload <code>&amp;</code>, though you can't currently overload <code>&amp;&amp;</code>.</p>



<a name="212939615"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939615" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939615">(Oct 10 2020 at 23:26)</a>:</h4>
<p>I don't think it'd come up in practice.</p>



<a name="212939670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939670">(Oct 10 2020 at 23:28)</a>:</h4>
<p>I think the example with floats vs range syntax seems most likely.</p>



<a name="212939733"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939733" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939733">(Oct 10 2020 at 23:30)</a>:</h4>
<p>Doesn't actually work, though, because <code>1.</code> is an ambiguous float type so you can't call a method on it without disambiguating first.</p>



<a name="212939853"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939853" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939853">(Oct 10 2020 at 23:34)</a>:</h4>
<p>Oh, hey. Yes, I can absolutely write an expression that has a different meaning depending on spacing. :)</p>



<a name="212939912"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939912" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939912">(Oct 10 2020 at 23:36)</a>:</h4>
<p>Awww. Turns out that Rust doesn't like doc comments in the middle of expressions. Otherwise, this would work:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="sd">///</span>
<span class="w">        </span><span class="o">+</span><span class="mi">2</span><span class="p">;</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="o">/</span><span class="w"> </span><span class="c1">//</span>
<span class="w">        </span><span class="o">+</span><span class="mi">2</span><span class="p">;</span><span class="w"></span>
</code></pre></div>



<a name="212939929"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939929" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939929">(Oct 10 2020 at 23:37)</a>:</h4>
<p>OK, this one I'm not sure why it doesn't work:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="c1">//**/</span>
<span class="w">        </span><span class="o">+</span><span class="mi">2</span><span class="p">;</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="o">/</span><span class="w"> </span><span class="cm">/**/</span><span class="w"></span>
<span class="w">        </span><span class="o">+</span><span class="mi">2</span><span class="p">;</span><span class="w"></span>
</code></pre></div>

<p>rustc says:</p>
<div class="codehilite" data-code-language="Text only"><pre><span></span><code>error: expected expression, found `+`
 --&gt; src/main.rs:5:9
  |
5 |         +2;
  |         ^ expected expression
</code></pre></div>



<a name="212939972"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939972" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939972">(Oct 10 2020 at 23:38)</a>:</h4>
<p>There, got one:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="k">fn</span> <span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="c1">//**/</span>
<span class="w">        </span><span class="o">-</span><span class="mi">2</span><span class="p">;</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="o">/</span><span class="w"> </span><span class="cm">/**/</span><span class="w"></span>
<span class="w">        </span><span class="o">-</span><span class="mi">2</span><span class="p">;</span><span class="w"></span>

<span class="w">    </span><span class="n">println</span><span class="o">!</span><span class="p">(</span><span class="s">"{} {}"</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>



<a name="212939976"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212939976" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212939976">(Oct 10 2020 at 23:39)</a>:</h4>
<p>Output: <code>0 -1</code></p>



<a name="212940997"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212940997" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212940997">(Oct 11 2020 at 00:13)</a>:</h4>
<p><span class="user-mention silent" data-user-id="239881">Josh Triplett</span> <a href="#narrow/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols/near/212939733">said</a>:</p>
<blockquote>
<p>Doesn't actually work, though, because <code>1.</code> is an ambiguous float type so you can't call a method on it without disambiguating first.</p>
</blockquote>
<p><span class="user-mention" data-user-id="239881">@Josh Triplett</span>:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="k">trait</span><span class="w"> </span><span class="n">T</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">g</span><span class="p">(</span><span class="bp">self</span><span class="p">);</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">impl</span><span class="w"> </span><span class="n">T</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="kt">f64</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">g</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">fn</span> <span class="nf">g</span><span class="p">()</span><span class="w"> </span>-&gt; <span class="kt">u32</span> <span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="mi">9</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">fn</span> <span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">_</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.</span><span class="w"> </span><span class="p">.</span><span class="n">g</span><span class="p">();</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">_</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="n">g</span><span class="p">();</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>



<a name="212941055"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212941055" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212941055">(Oct 11 2020 at 00:14)</a>:</h4>
<p><span class="user-mention silent" data-user-id="239881">Josh Triplett</span> <a href="#narrow/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols/near/212939972">said</a>:</p>
<blockquote>
<p>There, got one:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="k">fn</span> <span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="c1">//**/</span>
<span class="w">        </span><span class="o">-</span><span class="mi">2</span><span class="p">;</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="o">/</span><span class="w"> </span><span class="cm">/**/</span><span class="w"></span>
<span class="w">        </span><span class="o">-</span><span class="mi">2</span><span class="p">;</span><span class="w"></span>

<span class="w">    </span><span class="n">println</span><span class="o">!</span><span class="p">(</span><span class="s">"{} {}"</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>

</blockquote>
<p>That's another fun one!</p>



<a name="212941078"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212941078" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212941078">(Oct 11 2020 at 00:15)</a>:</h4>
<p><span class="user-mention silent" data-user-id="239881">Josh Triplett</span> <a href="#narrow/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols/near/212939602">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="121053">varkor</span> You can overload <code>&amp;</code>, though you can't currently overload <code>&amp;&amp;</code>.</p>
</blockquote>
<p>Yeah. I think it may be possible to create an ambiguity with <code>&amp;&amp;</code> overloading too.</p>



<a name="212954227"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212954227" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212954227">(Oct 11 2020 at 07:53)</a>:</h4>
<p>I've run into <code>x.0.0</code> vs <code>x.0 .0</code> before, although the former is unfortunately parsed as <code>x. 0.0</code> which I think isn't ever valid because a float literal can't be a field name</p>



<a name="212960520"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212960520" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Daniel Henry-Mantilla <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212960520">(Oct 11 2020 at 10:53)</a>:</h4>
<p>And the elephant in the room, macros</p>



<a name="212967654"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/whitespace%20sensitivity%20with%20symbols/near/212967654" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/whitespace.20sensitivity.20with.20symbols.html#212967654">(Oct 11 2020 at 14:32)</a>:</h4>
<p>Chained tuple index expressions are no longer treated as floats as of 1.46.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>